/// <reference path="../typings/index.d.ts" />
'use strict';
const path = require('path'),
    rootPath = path.normalize(__dirname + '/..'),
    env = process.env.NODE_ENV || 'development';

const config = {
    development: {
        root: rootPath,
        app: {
            name: 'expressmvc'
        },
        port: process.env.PORT || 3000,
        db: 'mongodb://192.168.13.1/expressmvc-development'
    },

    test: {
        root: rootPath,
        app: {
            name: 'expressmvc'
        },
        port: process.env.PORT || 3000,
        db: 'mongodb://192.168.13.1/expressmvc-test'
    },

    production: {
        root: rootPath,
        app: {
            name: 'expressmvc'
        },
        port: process.env.PORT || 3000,
        db: 'mongodb://192.168.13.1/expressmvc-production'
    }
};
module.exports = config[env];